package com.xmg.p2p.base.domain;

import java.util.Date;

public class BaseAuditDomain extends BaseDomain {

    public static final int STATE_APPLY = 0;//正常状态
    public static final int STATE_PASS = 1;//申请通过
    public static final int STATE_REJECT = 2;//申请不通过
    protected int state;
    protected Logininfo applier;
    protected Logininfo auditor;
    protected Date applyTime;
    protected Date auditTime;
    protected String remark;

    public String getStateDisplay() {
        switch (state) {
            case STATE_APPLY:
                return "待审核";
            case STATE_PASS:
                return "审核通过";
            case STATE_REJECT:
                return "审核拒绝";
            default:
                return "";
        }
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public Logininfo getApplier() {
        return applier;
    }

    public void setApplier(Logininfo applier) {
        this.applier = applier;
    }

    public Logininfo getAuditor() {
        return auditor;
    }

    public void setAuditor(Logininfo auditor) {
        this.auditor = auditor;
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
